#!/bin/bash

file="$(mktemp)"
cp "$@" "$file"
$EDITOR "$file"
doas mv "$file" "$@"

